 
using System;
using System.Collections;
using System.Xml.Serialization;

using Castle.ActiveRecord;
using System.Collections.Generic;
using Castle.ActiveRecord.Queries;
using NHibernate;
using NHibernate.Expression;

namespace Mang24k99.Model.Dissertation
{
    public partial class MNewsContentTable : HYXInfo
    {
        #region Field Members

        #endregion

        #region Property Members


        #endregion
        
        #region Static Methods

        //public static Array FindList(int start,out int iCount,int end)
        //{
        //    string endTime=DateTime.Now.ToString("yyyyMMddhhmmss");
        //    string startTime = DateTime.Now.AddDays(-1).ToString("yyyyMMddhhmmss");
        //    iCount = ((Array)ActiveRecordBase.SlicedFindAll(typeof(MNewsContentTable), 1, 500, new Order[] { Order.Desc("NewsID") }, Expression.Between("LastUpdateTime", startTime, endTime))).Length;
        //    return (Array)ActiveRecordBase.SlicedFindAll(typeof(MNewsContentTable), start, end, new Order[] { Order.Desc("NewsID") }, Expression.Between("LastUpdateTime", startTime, endTime));

        //    //string hql = "select top 500 * from NewsContent_Table order by NewsID desc";
        //    //SimpleQuery query = new SimpleQuery(typeof(MNewsContentTable), hql,null);
        //    //return (IList<MNewsContentTable>)ExecuteQuery(query);
        //}
        
        #endregion

    }
}
